﻿''' <summary>
''' 
''' </summary>
''' <remarks></remarks>
Public Class ViewModelStatusBarSection
    Inherits ViewModelBase

    Private _text As String
    Private _template As String
    Private _viewmodel As ViewModelBase = Nothing
    Private _alignment As StateBarAlignment = StateBarAlignment.Default

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Property Alignment As StateBarAlignment
        Get
            Return _alignment
        End Get
        Set(ByVal value As StateBarAlignment)
            _alignment = value
            OnPropertyChanged("Alignment")
        End Set
    End Property

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Public Property Text As String
        Get
            Return _text
        End Get
        Set(ByVal value As String)
            _text = value
            OnPropertyChanged("Text")
        End Set
    End Property

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Public Property Template As String
        Get
            Return _template
        End Get
        Set(ByVal value As String)
            _template = value
            OnPropertyChanged("Template")
        End Set
    End Property

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Public Property ViewModel As ViewModelBase
        Get
            Return _viewmodel
        End Get
        Set(ByVal value As ViewModelBase)
            _viewmodel = value
            OnPropertyChanged("ViewModel")
        End Set
    End Property
End Class

''' <summary>
''' Alignement de la barre d'état
''' </summary>
''' <remarks>
''' 
''' </remarks>
Public Enum StateBarAlignment
    ''' <summary>
    ''' Alignement par défaut
    ''' </summary>
    ''' <remarks>
    ''' 
    ''' </remarks>
    [Default] = 0
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Left = 0
    ''' <summary>
    ''' Alignement à droite
    ''' </summary>
    ''' <remarks>
    ''' 
    ''' </remarks>
    Right = 2
End Enum